package com.atguigu.yygh.cmn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/*==================================
      时 间:   2023-03-17
      讲 师:   刘  辉
      描 述:   尚硅谷教学团队
===================================*/
@SpringBootApplication
@ComponentScan(value = "com.atguigu")
@MapperScan(value = "com.atguigu.yygh.cmn.mapper")
@EnableDiscoveryClient
//在主启动类加注解扫描自定义FeignClient注解所在的包
@EnableFeignClients(value = "com.atguigu")
public class CmnMainStarter {

    public static void main(String[] args) {
        SpringApplication.run(CmnMainStarter.class,args);
    }
}
